import {request} from "../common/js/request.js"

//注册用户
export function registerUser(data){
	return request({
		url:'/user/register',
		method:'post',
		data
	})
}

//登录
export function login(data){
	return request({
		url:'/user/login',
		method:'post',
		data
	})
}
//修改
export function updateUser(data){
	return request({
		url:'/user/profile',
		method:'put',
		data
	})
}
//忘记密码
export function resetPassword(data){
	return request({
		url:'/user/password',
		method:'put',
		data
	})
}
//查询用户是否存在
export function isUser(data){
	return request({
		url:'/user/isuser',
		method:'post',
		data
	})
}
// 根据id查找用户
export function getUserById(data){
	return request({
		url:'/user/userById',
		method:'POST',
		data
	})
}